package cn.java59;

import java.util.Scanner;

public class Homework2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String num1;
		String num2;
		System.out.println("输入一个字母：");
		num1 = sc.next();
		switch (num1) {
		case "M":
			System.out.println("星期一");
			break;
		case "W":
			System.out.println("星期三");
			break;
		case "F":
			System.out.println("星期五");
			break;
		case "S":
			System.out.println("输入第二个英文字母：");
			num2 = sc.next();
			if ("u".equals(num2)) {
				System.out.println("星期天");
			} else if ("a".equals(num2)) {
				System.out.println("星期六");
			} else {
				System.out.println("输入有误");
			}
			break;
		case "T":
			System.out.println("输入第二个英文字母：");
			num2 = sc.next();
			if ("u".equals(num2)) {
				System.out.println("星期二");
			} else if ("h".equals(num2)) {
				System.out.println("星期四");
			} else {
				System.out.println("输入有误");
			}
			break;
		default:
			break;
		}

	}

}
